package com.freemarker.test.client;

import java.util.HashMap;
import java.util.Map;

import com.freemarker.test.util.FreeMarkerUtil;

public class ClientTest4String {
	
	
	
	public static void main(String[] args) {
		
		Map<String,Object> root=new HashMap<String, Object>();
		
		Map<String,String> map1 = new HashMap<String, String>();
		map1.put("k1", "v1");
		map1.put("k2", "v2");
		map1.put("k3", "v3");
		map1.put("k4", "v4");
		
		root.put("userMap",map1);
		
		
		Map<Integer,String> map2 = new HashMap<Integer, String>();
		map2.put(10, "v11");
		map2.put(20, "v22");
		map2.put(30, "v33");
		
		root.put("map2",map2);
		
		FreeMarkerUtil.analysisTemplate("test_map.ftl", "UTF-8", root);
		
		
	}
	

}
